import CustomTable from "./custom-table/index.vue";
import SvgIcon from "./svg-icon/index.vue";
import FilterRules from "./filter-rules/index.vue";
import ToolBar from "./tool-bar/index.vue";
import ImagePreview from "./ImagePreview/index.vue";
import CropperImg from "./cropper-img/index.vue"

import type { App, Component } from "vue";
const components: { [name: string]: Component } = {
  CustomTable,
  SvgIcon,
  FilterRules,
  ToolBar,
  ImagePreview,
  CropperImg
};

export default {
  install(app: App) {
    // 注册全局通用组件
    Object.keys(components).forEach((key: string) => {
      app.component(key, components[key]);
    });
  }
};
